package com.ruoyi.openDoor.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.openDoor.mapper.BusinessRoomInfoMapper;
import com.ruoyi.openDoor.domain.BusinessRoomInfo;
import com.ruoyi.openDoor.service.IBusinessRoomInfoService;

/**
 * 商家的包间Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-06
 */
@Service
public class BusinessRoomInfoServiceImpl implements IBusinessRoomInfoService 
{
    @Autowired
    private BusinessRoomInfoMapper businessRoomInfoMapper;

    /**
     * 查询商家的包间
     * 
     * @param id 商家的包间主键
     * @return 商家的包间
     */
    @Override
    public BusinessRoomInfo selectBusinessRoomInfoById(Long id)
    {
        return businessRoomInfoMapper.selectBusinessRoomInfoById(id);
    }

    /**
     * 查询商家的包间列表
     * 
     * @param businessRoomInfo 商家的包间
     * @return 商家的包间
     */
    @Override
    public List<BusinessRoomInfo> selectBusinessRoomInfoList(BusinessRoomInfo businessRoomInfo)
    {
        return businessRoomInfoMapper.selectBusinessRoomInfoList(businessRoomInfo);
    }

    /**
     * 新增商家的包间
     * 
     * @param businessRoomInfo 商家的包间
     * @return 结果
     */
    @Override
    public int insertBusinessRoomInfo(BusinessRoomInfo businessRoomInfo)
    {
        return businessRoomInfoMapper.insertBusinessRoomInfo(businessRoomInfo);
    }

    /**
     * 修改商家的包间
     * 
     * @param businessRoomInfo 商家的包间
     * @return 结果
     */
    @Override
    public int updateBusinessRoomInfo(BusinessRoomInfo businessRoomInfo)
    {
        return businessRoomInfoMapper.updateBusinessRoomInfo(businessRoomInfo);
    }

    /**
     * 批量删除商家的包间
     * 
     * @param ids 需要删除的商家的包间主键
     * @return 结果
     */
    @Override
    public int deleteBusinessRoomInfoByIds(Long[] ids)
    {
        return businessRoomInfoMapper.deleteBusinessRoomInfoByIds(ids);
    }

    /**
     * 删除商家的包间信息
     * 
     * @param id 商家的包间主键
     * @return 结果
     */
    @Override
    public int deleteBusinessRoomInfoById(Long id)
    {
        return businessRoomInfoMapper.deleteBusinessRoomInfoById(id);
    }
}
